package com.atguigu.boot.controller;

import com.atguigu.boot.config.MyBeanConfig;
import com.atguigu.boot.pojo.Dog;
import com.atguigu.boot.pojo.MyBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * spring-boot
 * 2022/9/13 20 19
 */
@RestController
@Slf4j
public class DogController {
    @Autowired
    MyBean myBean;
    @Autowired
    Dog dog;
    @GetMapping("/dogInfo")
    public Dog dogInfo(){
        return dog;
    }

    @GetMapping("/beanInfo")
    public MyBean beanInfo(){
        return myBean;
    }
}
